package com.yhq.basic.design.singleton;

import java.io.Serializable;

/**
 * 单例模式
 * 饿汉式-静态常量初始化单例
 *
 * @author hqyin
 * @date 2023/2/3 10:12 上午
 */
public class Singleton1 implements Serializable {
    private static final Singleton1 INSTANCE = new Singleton1();

    private Singleton1() {

    }

    public static Singleton1 getInstance() {
        return INSTANCE;
    }
}
